<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;"/>
<title>${form.name}-${web.title}</title>
<link href="/template/default/css/main.css" type="text/css" rel="stylesheet" media="screen and (min-width: 800px)" >
<link href="/template/default/css/main_m.css" type="text/css" rel="stylesheet" media="screen and (max-width: 800px)" >
<link href="/template/default/css/form/detail.css" type="text/css" rel="stylesheet">
<link href="/resource/css/grayscale.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/grayscale.js"></script>
<script type="text/javascript" src="/template/default/js/main.js"></script>
<script type="text/javascript" src="/template/default/js/form/detial.js"></script>
<script type="text/javascript">
var formnames = new Array(${formnames});
var formvalues = new Array(${formvalues});
</script>
</head>

<body>
	<#include "top.html">
	<div class="panel">
		<div class="middle">
			<center><h1>${form.name}</h1></center>
       		<a href="/form?formid=${form.id}" class="formreturn">← 返回</a>
			<div id="formdesign">${form.design!}</div><br />
			<#if formdata.result??>
				<center>
					<div class="result"><b>回复结果：</b><br />${formdata.result!}</div><br />
					<form method="post" action="evaluate" onsubmit="return checkform()">
	                     <b>满意度：</b>
	                     <#list atisfactions as atisfaction>
	                     	<label><input type="radio" name="atisfactionid" value="${atisfaction.id}" <#if formdata.formDataAtisfaction?? && formdata.formDataAtisfaction.id == atisfaction.id || atisfaction_index == 0>checked</#if> />${atisfaction.name}
	                     </#list>
	                     <br /><br />
	                     <textarea name="evaluate" rows="3" cols="60">${formdata.evaluate!}</textarea><br /><br />
	                     <input type="submit" value=" 评 价 "/>
	                     <input type="hidden" name="formid" value="${form.id}" />
	                     <input type="hidden" name="formdataid" value="${formdata.id}" />
	                 </form>
				</center>
            <#else>
            	<center>正在受理中...</center>
			</#if>
	  	</div>
		<#include "bottom.html">
	</div>
</body>
</html>
